//
//  GameOverView.m
//  ShovelBattle
//
//  Created by Eleve on 16/03/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "GameOverView.h"

@implementation GameOverView

- (id)initWithFrame:(CGRect)frame andLabel:(NSString *)label
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createLabelField:label];
    }
    return self;
}

- (void)createLabelField:(NSString *)label
{
    UILabel *gameOverLabel = [[UILabel alloc] init];
    gameOverLabel.text = label;
    [self addSubview:gameOverLabel];
    [gameOverLabel setFrame:CGRectMake(10, 50, 150, 40)];
    [gameOverLabel release];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
